<template>
  <div>
    <el-card
      class="header"
      :body-style="{ padding: '0px' }"
    >
      <h2>CDTCC 随身练习题</h2>
    </el-card>
    <div
      class="main"
      :style="{width:containerWidth}"
    >
      <!-- <el-scrollbar style="height: 100%"> -->
      <listView></listView>
      <!-- </el-scrollbar> -->
    </div>
    <el-card
      class="footer"
      :body-style="{ padding: '0px' }"
    >
      成都终端管制室创新工作室 @{{new Date().getFullYear()}}
    </el-card>
  </div>
</template>

<script>
  import listView from "./listView";
  export default {
    name: "startView",
    components: {
      listView,
    },
    computed: {
      containerWidth() {
        return this.$store.state.style.containerWidth;
      }
    }
  };
</script>

<style scoped>
  .main {
    padding: 60px 0 24px 0;
    margin: 0;
  }

  .header {
    position: fixed;
    z-index: 1000;
    top: -5px;
    left: 0;
    right: 0;
    height: 60px;
    padding: 5px 0 0 0;
    margin: 0;
    display: flex;
    justify-content: center;
    /* 水平居中 */
    align-items: center;
    /* 垂直居中 */
    /* border-bottom: 1px solid white; */
    white-space: nowrap;
    overflow: hidden;
    /* background: rgba(64, 158, 255, 0.75); */
    /* box-shadow: -5px 0 5px rgba(255, 255, 255, 0.75); */
    color: #606266
  }

  .footer {
    position: fixed;
    z-index: 1000;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 24px;
    padding: 0 0 5px 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    /* border-top: 1px solid white; */
    font-size: 12px;
    color: grey;
    white-space: nowrap;
    overflow: hidden;
    /* background: rgba(255, 255, 255, 0.75); */

  }
</style>